home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3c / sem_post.z / sem_post
Encoding:
Text File  |  1998-10-20  |  2.2 KB  |  66 lines

  1.  
  2.  
  3.  
  4. sssseeeemmmm____ppppoooosssstttt((((3333CCCC))))                                                      sssseeeemmmm____ppppoooosssstttt((((3333CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _ssss_eeee_mmmm______pppp_oooo_ssss_tttt - release a posix named or unnamed semaphore
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_eeee_mmmm_aaaa_pppp_hhhh_oooo_rrrr_eeee_...._hhhh_>>>>
  13.      _iiii_nnnn_tttt _ssss_eeee_mmmm______pppp_oooo_ssss_tttt_((((_ssss_eeee_mmmm______tttt _****_s_e_m_))))_;;;;
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      _ssss_eeee_mmmm______pppp_oooo_ssss_tttt atomically increments the value of the semaphore located at
  17.      address _s_e_m.  If any processes are blocked on the semaphore, the highest
  18.      priority process waiting the longest is unblocked and made runnable.
  19.  
  20.      The address _s_e_m may reside anywhere in the calling processes address
  21.      space, but the process must have read and write access to _s_e_m.
  22.  
  23.      _ssss_eeee_mmmm______pppp_oooo_ssss_tttt will fail if the following is true:
  24.  
  25.      [EINVAL]    The semaphore located at address _s_e_m is not a valid posix
  26.                  named or unnamed semaphore.
  27.  
  28. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  29.      sem_init(3C), sem_destroy(3C), sem_getvalue(3C), sem_post(3C),
  30.      sem_wait(3C), sem_trywait(3C), sem_open(3C), sem_close(3C),
  31.      sem_unlink(3C),
  32.  
  33. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  34.      Upon successful completion, a value of 0 is returned to the calling
  35.      process. Otherwise, a value of -1 is returned and _eeee_rrrr_rrrr_nnnn_oooo is set to
  36.      indicate the error.
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                                                                         PPPPaaaaggggeeee 1111
  62.  
  63.  
  64.  
  65.